<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>灵活保险补贴申请</title>
  <link rel="stylesheet" href="./styles/css/index.css">
  <link rel="stylesheet" href="./styles/css/common.css">
</head>

<body>
  <div class="all">
    <!-- 头部开始 -->
    <script src="http://rsj.beijing.gov.cn/images/rsj_header.js"></script>
    <include src="./include/head.html"></include>
    <!-- 头部结束 -->
    <!-- 申请提示开始 -->
    <div class="message">
      <div class="content">
        <div class="zuo left">
          <div class="titles concommon">
            <h3>灵活保险补贴申请</h3>
          </div>
          <div class="leftcon left Cns ">
            <p class="qytj">
              <span>申请须知</span></p>
            <div class="sqxz">
              <p class="black">1.申请灵活就业保险补贴前，请确认已参加本市城镇职工社会保险。</p>
              <p class="black">2.请确认已办理过失业登记和就业登记。</p>
              <p class="black">3.申请身份必须为男满45周岁、女满40周岁、登记失业一年以上人员、应届高校毕业生中的一种，可在互联网移动端办理申请。</p>
              <p class="black">4.如果您是本市户籍应届高校毕业生，但无法申请灵活就业社会保险补贴,请咨询12333。</p>
              <p class="black">5.请确保所填材料的准确性。</p>
            </div>
            <p class="agree">
              <input type="checkbox" class="J_agree" id='read'>
              <label for="read">已阅读并同意</label>
            </p>
          </div>
          <div class="rightcon right">
            <img src="./styles/images/_index.png" alt="">
          </div>
          <a href="#" class="indexhref J_ljsl jydj">立即申请</a>
        </div>
        <include src="./include/right.html"></include>
      </div>
    </div>
    <!-- 申请提示结束 -->
    <!-- 尾部开始 -->
    <!-- <include src="./include/foot.html"></include> -->
    <script src="http://rsj.beijing.gov.cn/footer.js"></script>
    <!-- 尾部结束 -->
  </div>
  <!--机构名录弹框-->
  <div class="box" sfnr="0"></div>

  <script src="./common/vendor.js"></script>
  <script src="./common/common.js"></script>
  <script>
    $(function() {
      var loading = new $.Loading();
      $(document).on('click', '.J_ljsl', function() {
        if ($('.J_agree').prop('checked') != true) {
          $.layerMsg('请先阅读并同意!', '我知道了');
          return false;
        }
        link();
      })

      function link() {
        loading.on();
        $.fetch({
          url: '/lhsq/sqCheck',
          type: 'get',
        }).done(function(result) {
          loading.off();
          var res = result.returnData;
          if (res.executeResult == 1) {
            sfgxbys = res.sfgxbys;
            sqid = res.sqid;
            sessionStorage.setItem('sfgxbys', res.sfgxbys) //是否高校毕业生
            sessionStorage.setItem('sqid', res.sqid) //是否高校毕业生
            if (sqid == "" && sfgxbys == '1') {
              $.layerMsg("是否以高校毕业生进行灵活申请补贴?", [{
                  text: '是',
                  cb: function() {
                    window.location.href = './lhjy.html';
                  },
                },
                {
                  text: '否',
                  cb: function() {
                    loading.on();
                    $.fetch({
                      url: '/lhsq/sqCheck?bygxbyssq=' + "1",
                      type: 'get',
                    }).done(function(result) {
                      loading.off();
                      var res = result.returnData;
                      if (res.executeResult == 1) {
                        sessionStorage.setItem('sfgxbys', "") //是否高校毕业生
                        window.location.href = './lhjy.html';
                      } else {
                        $.layerMsg(res.message, '我知道了');
                        loading.off();
                      }
                    })

                  }
                }
              ]);
              return false;
            };

            if (sqid) {
              window.location.href = './lhjy.html?sqid=' + sqid;
            } else {
              window.location.href = './lhjy.html';
            }

          } else {
            $.layerMsg(res.message, '我知道了');
            loading.off();
          }
        })
      }
    });
  </script>
  </script>



</body>

</html>